package com.service;

public class Employee {

    private  String name;

    private  Manager manager;

    private  Company company;

    @Override
    public String toString() {

         return String.format("我是%s的%s,我的经理是%s",
                 company.getName(),name,manager.getName());

    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public Manager getManager() {
        return manager;
    }

    public void setManager(Manager manager) {
        this.manager = manager;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
